package com.example.jpa.service;

import com.example.jpa.dao.StudentDao;
import com.example.jpa.entity.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentService
{
    @Resource
    StudentDao studentDao;

    public void addStudent(Student student){
        studentDao.save(student);
    }
}
